package com.framework.log.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 系统日志实体类
 * 
 * @author zzg
 * @date 2024-12-27
 * @since 1.0
 */
@Data
@TableName("sys_log")
public class SysLog {
	private static final long serialVersionUID = 6621820453513029685L;
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	private String userId;

    private String username;

    private String description;
	
    private String method;

    private String params;

    private String logLevel;

    private String requestIp;

    /** 中国|0|广东省|广州市|电信 **/
    private String address;

    private Long time;

    private String exceptionDetail;
    
}
